import { createRouter, createWebHistory } from 'vue-router'
import Index from '@/views/index.vue'
import Search from '@/views/search.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    { path: '/', redirect: '/index' },
    {path: '/index',name: 'index',component: Index,},
    {path: '/search',name: 'search',component: Search,},
  ],
})

export default router
